<%@page import="bean.MemberShipDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel='stylesheet' href='/kiSunnyShop/css/Insertform.css' />
<script src='/kiSunnyShop/js/main.js'></script>
<title>memberShip</title>
</head>
<body>
	<%
		request.setCharacterEncoding("utf-8");
	%>
	<jsp:useBean id="login" class="bean.MemberShipVo" scope="page" />
	<jsp:setProperty property="*" name="login" />
	<%
		MemberShipDTO dto = new MemberShipDTO();
	%>
	<form method='post' name='ff' action="index1.jsp?inc=./Community/m_f_memberShip.jsp">
	<div id='wrapper1'>
	<form class="contactForm"><!-- 밑줄 -->
	<div id="memberShip_title">
		<h1>회원 가입</h1>
	</div>
		
			<ul>	
		
			<li><label>ID:</label>
			<input type='text' name='mid' value="<%=login.getMid()%>"/>
				&nbsp;&nbsp;&nbsp;<input type='button' class="btnStyle" value='중복 검사' id="line1" onclick="check()"/></li>

				<%
				if(!(login.getMid().equals(""))){
					if(dto.check(login.getMid())){
						%><li><label>.</label><div style="color: red;">불 가능한 아이디 입니다.</div></li><br/> <%
						//out.print("불 가능한 아이디 입니다.");
					}else{
						%><li><label>.</label><div style="color: blue;">가능한 아이디 입니다.</div></li><br/> <%
						//out.print("사용 가능한 아이디 입니다.");
					} 
				}
				else{
				}
				%>	
			<li><label>비밀번호:</label>
			<input type='password' name='pwd' id="pwd" /></li><br/>
			
			<li><label>이름:</label>
			<input type='text' name='irum' id='irum' /></li><br/>
	
			<li><label>생년월일:</label>
			<input type='date' name='bir' id="datepicker" /></li><br/>

			<li><label>연락처:</label>
			<input type='text' name='phone' id="phone" /></li><br />
		
			<li><label>이메일:</label>
			<input type="text" name="email" id="email" placeholder="직접 입력">
				<select name="selectEmail" id="lines">
					<option>직접입력</option>
					<option value="@naver.com">naver.com</option>
					<option value="@google.com">google.com</option>
					<option value="@daum.net">daum.net</option>
			</select></li><br/>

			<li><label>주소:</label>
			<input type='text' name='address' id='address' /></li><br />
 
			<li><label>비밀번호 질문:</label>
			<select  id="question" name="question">
				<option>질문을 선택하세요?</option>
				<option value='1'>가장 좋아하는 색깔은?</option>
				<option value='2'>가장 좋아하는 계절은?</option>
				<option value='3'>가장 좋아하는 음식은?</option>
				<option value='4'>가장 좋아하는 배우는?</option>
			</select></li><br/>

			<li><label>비밀번호 답변:</label>
			<input type='text' name='answer' id='answer' /></li><br/>
	
		<li></li>
		   	</ul>
		   	</form>
		 <input type="hidden" name="sender" id="sender" value="wiill82@naver.com" />
		 <input type="hidden" name="receiver" id="receiver" />
		 <input type="hidden" name="subject" id="subject" value="Sunnyshop 가입을 해주셔서 감사합니다."/>
	
		 <input type='button' class="btnStyle" value='회원등록' id='btnSave_m'/>
<!-- 			 <div id="c_mail"><textarea name="content" id="content"><img src="/kiSunnyShop/images/membership_email.jpg"></textarea></div> -->
		
	</form>
  </div>

	<form name='hidf' method='post'>
		<input type='hidden' name='mid' id='mid' value=""/>
		<input type="hidden" name='' />
	</form>
	<script>membership();</script>
</body>
</html>